package com.itgaohe.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itgaohe.dao.entity.UserInfo;
import com.itgaohe.dao.mapper.UserInfoMapper;
import com.itgaohe.service.UserInfoService;
import org.springframework.stereotype.Service;

@Service
public class UserInfoServiceImpl extends ServiceImpl<UserInfoMapper, UserInfo> implements UserInfoService {
    @Override
    public Object getUserInfo(int userId) {
        LambdaQueryWrapper<UserInfo> eq = Wrappers.lambdaQuery(UserInfo.class)
                .eq(UserInfo::getUserId, userId);
        UserInfo one = this.getOne(eq);
        return one ;
    }
}
